import React from 'react'

class Input extends React.Component{
    state = {
     txt: ''
    }
    handleClick = (e) => {
        this.setState({
            txt: e.target.value
        })
        console.log(e.target.value)
    }
    render(){
        return <input type='text' value={this.state.txt} onChange = {this.handleClick}></input>
    }
}

export default Input